.credit-card {
	background: var( --color-surface );
	border: 1px solid var( --color-neutral-0 );
	padding-left: 2px;
	min-height: 50px;

	& + & {
		border-top: none;
	}

	&.is-selectable:not( .is-selected ) {
		cursor: pointer;
	}

	&.is-selected {
		cursor: default;
		position: relative;
		border-color: var( --color-primary-5 );
		border-left: 3px solid var( --color-primary-10 );
		background: var( --color-primary-0 );
		padding-top: 0;
		padding-left: 0;
	}

	// Add a faux top border that covers the previous item’s bottom border
	& + &.is-selected::before {
		content: '';
		position: absolute;
		top: -1px;
		right: 0;
		left: -3px;
		height: 1px;
		background: var( --color-primary-5 );
	}
}
